import React, {Component} from 'react';
import {NavLink} from "react-router-dom";


class MyNavLink extends Component {
    render() {
        return (
            // <div>
            //     <NavLink activeClassName="active" className="list-group-item " to="/about">About</NavLink>
            //     {/*标签体内容就是children标签*/}
            //     <NavLink activeClassName="active" className="list-group-item " to="/home" children="Home" />
            // </div>
            <NavLink activeClassName="active" className="list-group-item " {...this.props}/>
        );
    }
}

export default MyNavLink;